package com.mvp.shq.washer.entity;

import com.mvp.shq.washer.utils.DataDictionary;

import java.math.BigDecimal;
import java.util.Date;

/**
 * Created by Administrator on 2017/8/24.
 */

public class User {

    private String id;
    //手机号
    private String mobile;


    //真实姓名
    private String realname;


    //
    private String nickname;


    //性别
    private String gender;


    //生日
    private String birthday;


    //头像
    private String faceurl;


    //密码
    private String password;


    //充值余额
    private BigDecimal rechargeBalance;

    //赠送金额
    private BigDecimal givenMoney;

    private double integral;


    //职业
    private String job;


    //省份id
    private String provinceId;


    //城市id
    private String cityId;


    //地区id
    private String areaId;


    //详细地址
    private String detailAddress;

    //省份
    private String provinceName;

    //城市
    private String cityName;

    //地区
    private String areaName;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getRealname() {
        return realname;
    }

    public void setRealname(String realname) {
        this.realname = realname;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getFaceurl() {
        return DataDictionary.WASHER_IMG_BASE_URL+faceurl;
    }

    public String getFaceurlWithOutUrl() {
        return faceurl;
    }

    public void setFaceurl(String faceurl) {
        this.faceurl = faceurl;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public BigDecimal getRechargeBalance() {
        if(rechargeBalance == null){
            return new BigDecimal("0");
        }
        return rechargeBalance;
    }

    public void setRechargeBalance(BigDecimal rechargeBalance) {
        this.rechargeBalance = rechargeBalance;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getProvinceId() {
        return provinceId;
    }

    public void setProvinceId(String provinceId) {
        this.provinceId = provinceId;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public String getAreaId() {
        return areaId;
    }

    public void setAreaId(String areaId) {
        this.areaId = areaId;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    public String getProvinceName() {
        return provinceName;
    }

    public void setProvinceName(String provinceName) {
        this.provinceName = provinceName;
    }

    public String getCityName() {
        return cityName;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public double getIntegral() {
        return integral;
    }

    public void setIntegral(double integral) {
        this.integral = integral;
    }

    public BigDecimal getGivenMoney() {
        if (givenMoney == null){
            return new BigDecimal("0");
        }
        return givenMoney;
    }

    public void setGivenMoney(BigDecimal givenMoney) {
        this.givenMoney = givenMoney;
    }
}
